UnpackBits
UnpackBits Uncompress data stored via PackBits
#include <ToolUtils.h> Toolbox Utilities
void UnpackBits(srcPtr, destPtr, destLen );
Ptr *srcPtr ; address of a pointer to data to unpack
Ptr *destPtr ; address of a pointer to a destination buffer
short destLen ; length unpacked data will be
This unpacks data that was compressed by a previous call to PackBits.
srcPtr is the address of a pointer to the compressed data. Upon return, the
pointer has been adjusted to just beyond the data that has been
unpacked; i.e., ready for the next call.
destPtr is the address of a pointer to a buffer to hold the uncompressed data.
Upon return, it has been incremented by destLen .
destLen is the size, in bytes, that the data will need after it has been
unpacked. It is the same as the srcLen value passed in the previous
call to PackBits.
Returns: none

Notes: See PackBits for an example of saving a screen image as packed data and
restoring it via UnpackBits.
Since the destLen value must be known in advance, any generalized
packed-data save/restore procedure would need to have this value
accompany the compressed data.